package com.itheima.service;

import com.itheima.domain.SmsCode;

/**
 * ClassName: SmsCodeService
 * Description:
 * Date: 2023/03/11 AM 12:29:40
 * <p>
 * project: springboot
 * package: com.itheima.service
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public interface SmsCodeService {

    /**
     * 发送验证码到手机
     *
     * @param tele {@link String}
     * @return {@link String}
     */
    String sendCodeToSms(String tele);

    /**
     * 检查验证码
     *
     * @param smsCode {@link String}
     * @return {@link Boolean}
     */
    boolean checkCode(SmsCode smsCode);
}
